<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/WEB-INF/yy-1_0.tld" prefix="yy"%>
<c:set var="pageTitleLocal" value="标签云--资源列表" />
<yy:footprint pageTitle="${pageTitleLocal}" />
<html>
<HEAD>
	<base href="${AppURL}/ilib/" />
  	<title>${pageTitleLocal}</title>
	<LINK rel=stylesheet type=text/css href="style/main.css">
	<script type="text/javascript">
	function clean(){
		document.getElementById("tagName").value="";
	}
	function onSubmit(){
		var tags=document.getElementById("tagName").value;
		if(tags=="" || ""==tags){
			alert("标签名称不能为空。");
			return false;
		}else{
			document.forms[0].submit();
		}
	}
	</script>
</HEAD>

<jsp:useBean id="pageInfo" scope="request" class="westh.ilib.util.PageInfo" />

<BODY>
<DIV id="container">
	<DIV id="header">
		<div id="logo">
			<div><img src="images/ilib.bmp"></div>
		</div>
		<ul id="menu">
			<li><a href="../getMyTagClouds.do">首页</a></li>
			<li><a href="../addFunction.html">添加功能块</a><img src="images/add2.gif"></li>		
			<li><a href="../myResource.html">我的资源</a></li>
			<li><a href="../option.html">设置</a></li>
			<li><a href="../logoff.html">退出</a></li>
		</ul>
	</DIV>

	<div id="option">
		你好，${username }!	
	</div>
	<div id="clear"></div>   
	<form id="search" name="search" action="../getRscByTag.do" method="post" onsubmit=""/>
		<table>
			<tr>
				<td>
					<input type="text" name="tags" id="tagName" size="15" value="标签名称" onclick="clean()"/>
					<select name="like">
					<option value="0">精确</option>
					<option value="1">模糊</option>
					</select>
					<input type="button" value="搜索" onclick="onSubmit()"/>
				</td>
			</tr>
		</table>
	</form>
	<form action="../rscList.do?tagName=${tagName }" method="post" name="testForm">
	<%@ include file="../JSP/pageTop.jsp"%>
		<div id="left">
			<div id="lblockpaper">
	    	<h3 id="tinfo">标签：<span>${tagName }</span></h3>
	    	</div>
		</div>
		<div id="left">
			<div id ="body"> 
		</div>
		
		
		<div id="left">
			<div id="lblock0">
				<table width="896" border="1"  cellpadding="0" cellspacing="0" style="border-collapse: collapse" >
					<tr>
						<td align="center" width="49"><b>序号</b></td>
						<td align="center" width="385"><b>文章名称</b></td>
						<td align="center"width="80"><b>类别</b></td>
						<td align="center"width="87"><b>出版日期</b></td>
						<td width="128" align="center"><b>作者</b></td>
						<td width="82" align="center"><b>来源域</b></td>
					</tr>            
					<c:set var="i" value="0"/>
					<%
						int temp=(pageInfo.getPageNO() -1) * pageInfo.getPageSize();
						request.setAttribute("tempID",temp);
					 %>
					<c:forEach items="${pageInfo.pageList}" var="rsc" >
						<tr height="30"bgcolor="#E0E0F8">
							<td ><input type="checkbox" name="fruit" value ="3" align="center"><c:set var="i" value="${i+tempId+1}"/>${i}<br>	</td>
							<td id="title" align="center">
								<a href="../rscInfo.do?rscId=${rsc.rscId}"><c:out value="${rsc.rscTitle}"/></a>
							</td>
							<td id="type" align="center"><c:out value="${rsc.rscType}"/></td>
							<td id="date" align="center"><c:out value="${rsc.rscPublishDate}"/></td>
							<td id="author" align="center">
								<a href="../getResearcherInfo.do?researcherId=${rsc.rscFirstAuthorId}" target="_blank"><c:out value="${rsc.rscAuthor}"/></a>
							</td>
							<td id="source" align="center"><c:out value="${rsc.rscSource}"/></td>
						</tr>
					</c:forEach>       
				</table>
				<br/>
				<%@ include file="../JSP/pageBottom.jsp"%>
			</div>
	
			<table>
				<tr>
					<td width="100%"></td>
					<td><input name="存盘" type="button" value="存盘"></td>
				</tr>
			</table>
		</div>
	</form>
	<div id="footer">
		iLib 2010
	</div>	
</DIV>
</DIV>
</body>
</html>